#include<stdio.h>
#include<stdlib.h>
#include "LinklistwithHead.h"
/*
int main()
{
    printf("亲，请输入字符串：");
    char *str = (char *)malloc(100 * sizeof(char));  // 动态分配内存
    scanf("%s",str);
    Head *h = createListByStr(str);
    printList(h);
    clearList(h);
    deleteList(h);
    return 0;
}
*/
int main()
{
    printf("亲，请输入字符串1：");
    char *str1 = (char *)malloc(100 * sizeof(char));  // 动态分配内存
    scanf("%s",str1);
    Head *h1 = createListByStr(str1);
    printList(h1);

    printf("亲，请输入字符串2：");
    char *str2 = (char *)malloc(100 * sizeof(char));  // 动态分配内存
    scanf("%s",str2);
    Head *h2 = createListByStr(str2);
    printList(h2);

    Head *h3 = addTwoBigNum(h1,h2);
    printList(h3);

    clearList(h3);
    deleteList(h3);
    return 0;
}
/*完成main，要再加一个有序函数排序,调用Meger_LinkedListWithHead(h1,h2) */
